package com.vehicle.service.imp;

import com.vehicle.bean.DataGridView;
import com.vehicle.mapper.MaintainMapper;
import com.vehicle.pojo.Maintain;
import com.vehicle.service.MaintainService;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class MaintainServiceImpl implements MaintainService {
    private Logger logger= Logger.getLogger(this.getClass());
    @Autowired
    private MaintainMapper maintainMapper;
    @Override
    public DataGridView findAllMaintain() {
        DataGridView dataGridView =new DataGridView();
        dataGridView.setData(maintainMapper.selectAllMaintain());
        return dataGridView;
    }
}
